package com.nativetalk.dao;

import com.nativetalk.base.Page;
import com.nativetalk.bean.TdNtLikes;
import com.nativetalk.bean.live.likes.TdNtLikesList;

import java.util.List;

/**
 * Created by lizhun on 15/12/24.
 */
@MyBatisRepository
public interface TdNtLikesDao {
    /**
     * @Purpose  添加赞记录
     * @version  3.3
     * @author   lizhun
     * @param    tdNtLikes
     * @return   void
     */
    public void insertTdNtLikes(TdNtLikes tdNtLikes);
    /**
     * @Purpose  更新赞记录
     * @version  3.3
     * @author   lizhun
     * @param    tdNtLikes
     * @return   void
     */
    public void updateTdNtLikes(TdNtLikes tdNtLikes);

    /**
     * @Purpose  查找赞记录
     * @version  3.3
     * @author   lizhun
     * @param    tdNtLikes
     * @return   TdNtLikes
     */
    public TdNtLikes findTdNtLikesById(TdNtLikes tdNtLikes);
    /**
     * @Purpose  查找直播赞数量
     * @version  3.3
     * @author   lizhun
     * @param    page
     * @return   int
     */
    public int findTdNtLikesByLiveHisIdSize(Page page);
    /**
     * @Purpose  分页查找直播赞
     * @version  3.3
     * @author   lizhun
     * @param    page
     * @return   List<TdNtLikesList>
     */
    public List<TdNtLikesList> findTdNtLikesByLiveHisIdPage(Page page);
}
